package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YingjifuwuMapper;
import com.ruoyi.system.domain.Yingjifuwu;
import com.ruoyi.system.service.IYingjifuwuService;

/**
 * YingJiFuWuService业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
@Service
public class YingjifuwuServiceImpl implements IYingjifuwuService 
{
    @Autowired
    private YingjifuwuMapper yingjifuwuMapper;

    /**
     * 查询YingJiFuWu
     * 
     * @param id YingJiFuWu主键
     * @return YingJiFuWu
     */
    @Override
    public Yingjifuwu selectYingjifuwuById(Long id)
    {
        return yingjifuwuMapper.selectYingjifuwuById(id);
    }

    /**
     * 查询YingJiFuWu列表
     * 
     * @param yingjifuwu YingJiFuWu
     * @return YingJiFuWu
     */
    @Override
    public List<Yingjifuwu> selectYingjifuwuList(Yingjifuwu yingjifuwu)
    {
        return yingjifuwuMapper.selectYingjifuwuList(yingjifuwu);
    }

    /**
     * 新增YingJiFuWu
     * 
     * @param yingjifuwu YingJiFuWu
     * @return 结果
     */
    @Override
    public int insertYingjifuwu(Yingjifuwu yingjifuwu)
    {
        yingjifuwu.setCreateTime(DateUtils.getNowDate());
        return yingjifuwuMapper.insertYingjifuwu(yingjifuwu);
    }

    /**
     * 修改YingJiFuWu
     * 
     * @param yingjifuwu YingJiFuWu
     * @return 结果
     */
    @Override
    public int updateYingjifuwu(Yingjifuwu yingjifuwu)
    {
        yingjifuwu.setUpdateTime(DateUtils.getNowDate());
        return yingjifuwuMapper.updateYingjifuwu(yingjifuwu);
    }

    /**
     * 批量删除YingJiFuWu
     * 
     * @param ids 需要删除的YingJiFuWu主键
     * @return 结果
     */
    @Override
    public int deleteYingjifuwuByIds(Long[] ids)
    {
        return yingjifuwuMapper.deleteYingjifuwuByIds(ids);
    }

    /**
     * 删除YingJiFuWu信息
     * 
     * @param id YingJiFuWu主键
     * @return 结果
     */
    @Override
    public int deleteYingjifuwuById(Long id)
    {
        return yingjifuwuMapper.deleteYingjifuwuById(id);
    }
}
